{include file="public/header"/}
<style type="text/css">
	span.label{
		cursor:pointer;
	}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="alert alert-danger alert-dismissable">
        <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
        <div>尊敬的会员<span id="weather"></span></div>
    </div>

    <!-- 中间折线 -->
    <div class="row">
        <div class="col-sm-12">
            <div class="col-sm-6">
                <div class="panel panel-info">
                    <div class="panel-heading">
                        <i class="fa fa-cogs"></i> 系统信息
                    </div>
                    <div class="panel-body">
                        <p><i class="fa fa-sitemap"></i> 框架版本：ThinkPHP{$info.think_v}
                        </p>
                        <p><i class="fa fa-windows"></i> 服务环境：{$info.web_server}
                        </p>
                        <p><i class="fa fa-warning"></i> 上传附件限制：{$info.onload}
                        </p>
                        <p><i class="fa fa-credit-card"></i> PHP 版本：{$info.phpversion}
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

{include file="public/footer" /}
<script src="/static/admin/js/jquery.leoweather.min.js"></script>

<script type="text/javascript">
	$('.label').on('click',function(){
		if(!$(this).hasClass('label-success')){
			$(this).addClass('label-success').siblings().removeClass('label-success');
			changeData($(this));
		}
	});
	function changeData(_this){
		var tab=_this.data('tab');
		var time=_this.data('time');
		
		$.ajax({
			type:"get",
			url:"{:url()}?tab="+tab+"&time="+time,
			success:function(data){
				_this.parents('.ibox').find('h1.no-margins').html(data);
			}
		});
	}
//	$('.ibox-title span').each(function(){
//		if($(this).hasClass('label-success')){
//			var time=$(this).data('time');
//			console.log(time);
//			$('h1.'+time).show();
//		}
//	});
</script>
</body>
</html>